#include <odbc/details/bindable_buffer_base.hpp>
#include <odbc/statement.hpp>
#undef max
#include <limits>

namespace odbc
{
namespace details
{

bindable_buffer_base::bindable_buffer_base()
	: lengthIndicator_( SQL_NULL_DATA),
  	  bindPosition_( std::numeric_limits< SQLUSMALLINT>::max())
{
}

// ---------------------------------------------------------------------------------------------------------------------

bindable_buffer_base::~bindable_buffer_base()
{
}

// ---------------------------------------------------------------------------------------------------------------------

/*static*/
SQLHANDLE bindable_buffer_base::statement_handle( const statement& stat) 
{
	return stat.handle_; 
}

} // namespace details
} // namespace odbc

